package com.example.jetcache_demo.service;

import com.alicp.jetcache.anno.CacheType;
import com.alicp.jetcache.anno.Cached;

/**
 * @Description
 * @Author lihw
 * @Date 2024/7/18 17:59
 */
public interface TestService {
    @Cached(name = "remoteUserCache-", key = "#userId", cacheType = CacheType.LOCAL, expire = 10)
    String ttlMsg(String userId);

    String localMsg(String userId);
}
